package com.ruoyi.web.controller.cashier;

import com.ruoyi.system.domain.SyTicketDurationCard;
import com.ruoyi.system.service.ISyTicketDurationCardService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/sy-ticket-duration-card")
@Api(tags = "充值信息管理")
public class SyTicketDurationCardController {

    @Autowired
    private ISyTicketDurationCardService cardService;

    @GetMapping("/list")
    @ApiOperation("获取所有充值信息列表")
    public List<SyTicketDurationCard> getAllCards() {
        return cardService.listAll();
    }
}
